const { Schema } = require('mongoose');
const ObjectId = Schema.ObjectId;

const UserSchame = new Schema({
  username: String,
  identify: ObjectId,
  slogan: String,
  email: String,
  password: String,
  phoneNumber: Number | String,
  friends: String,
});

const ChatHistSchame = new Schema({
  content: String,
  Date: Date,
  from: ObjectId,
  to: ObjectId
})

module.exports = {
  UserSchame,
  ChatHistSchame
}
